

import { ItemModule } from './item/item.module';
import { ArticleModule } from './article/article.module';
import { UserModule } from './user/user.module';

import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { configService } from './config/config.service';

@Module({
  imports: [
    TypeOrmModule.forRoot(configService.getTypeOrmConfig()),

    ItemModule,
    ArticleModule,
    UserModule,

  ],
  controllers: [AppController],
  providers: [AppService,],
})
export class AppModule { }

